feat(tui): add auto_resize_timer config and refactor timer logic#105
Merged
alxhall merged 4 commits intoponbac:masterfrom Mar 6, 2026
Merged
feat(tui): add auto_resize_timer config and refactor timer logic#105alxhall merged 4 commits intoponbac:masterfrom
alxhall merged 4 commits intoponbac:masterfrom
Conversation
- Move focused_this_week_index adjustment into stop_timer() so it is the single authoritative place to stop the timer - Have SaveAndStop branch call app.stop_timer() instead of duplicating the logic inline - Remove #[allow(dead_code)] — stop_timer() is now called at runtime - Document auto_resize_timer in README (config key + env var)
|
@alxhall is attempting to deploy a commit to the ponbac's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new configuration option to control whether the timer widget in the Toki TUI application automatically resizes when starting or stopping. The change is fully integrated into the configuration system, environment variables, and application logic, and updates the documentation accordingly.
Configuration and documentation:
auto_resize_timeroption toconfig.tomland the environment variableTOKI_TUI_AUTO_RESIZE_TIMER, with documentation inREADME.md. This option controls whether the timer widget automatically grows/shrinks when started/stopped. [1] [2]TokiConfigstruct and its defaults to include theauto_resize_timerboolean, defaulting totrue. [1] [2] [3]auto_resize_timerto theAppstruct and ensured it is set during initialization. [1] [2]Timer logic updates:
Appto accept anauto_resizeparameter, and updated all timer-related actions to use the new configuration value, ensuring consistent resizing behavior based on user preference. [1] [2] [3] [4] [5] [6]